// src/router/modules/registry.js
import { RouterView } from 'vue-router'

export default {
    path: 'registry',
    name: 'Registry',
    component: RouterView,            // 只渲染子路由，不再套 Layout
    redirect: '/registry/register',   // 访问 /registry 时重定向到“现场挂号”
    meta: {
        title: '挂号收费',
        icon: 'CreditCard'
    },
    children: [
        {
            path: 'register',
            name: 'RegistryRegister',
            component: () => import('@/views/registry/Register.vue'),
            meta: { title: '现场挂号' }
        },
        {
            path: 'charge',
            name: 'RegistryCharge',
            component: () => import('@/views/registry/Charge.vue'),
            meta: { title: '收费' }
        }
        // {
        //     path: 'unregister',
        //     name: 'RegistryUnregister',
        //     component: () => import('@/views/registry/Unregister.vue'),
        //     meta: { title: '退号' }
        // },
        // {
        //     path: 'refund',
        //     name: 'RegistryRefund',
        //     component: () => import('@/views/registry/Refund.vue'),
        //     meta: { title: '退费' }
        // },
        // {
        //     path: 'query',
        //     name: 'RegistryCostQuery',
        //     component: () => import('@/views/registry/CostQuery.vue'),
        //     meta: { title: '患者费用查询' }
        // },
        // {
        //     path: 'shift',
        //     name: 'RegistryShift',
        //     component: () => import('@/views/registry/Shift.vue'),
        //     meta: { title: '收费员日结' }
        // }
    ]
}
